package com.shunda.pay.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 微信支付配置类
 */
@Component
public class WxPayConfig {
    //APPID
    @Value("${wx.pay.appId}")
    private String appId;
    //mchid
    @Value("${wx.pay.merchantId}")
    private String merchantId;
    //商户API私钥
    @Value("${wx.pay.privateKey}")
    private String privateKey;
    //商户证书序列号
    @Value("${wx.pay.merchantSerialNumber}")
    private String merchantSerialNumber;
    //商户APIv3密钥
    @Value("${wx.pay.apiV3Key}")
    private String apiV3Key;
    //微信服务器地址
    @Value("${wx.pay.wxDomain}")
    private String wxDomain;
    //支付接收结果通知地址
    @Value("${wx.pay.payNotifyUrl}")
    private String payNotifyUrl;
    //提现接收结果通知地址
    @Value("${wx.pay.transferNotifyUrl}")
    private String transferNotifyUrl;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getMerchantSerialNumber() {
        return merchantSerialNumber;
    }

    public void setMerchantSerialNumber(String merchantSerialNumber) {
        this.merchantSerialNumber = merchantSerialNumber;
    }

    public String getApiV3Key() {
        return apiV3Key;
    }

    public void setApiV3Key(String apiV3Key) {
        this.apiV3Key = apiV3Key;
    }

    public String getWxDomain() {
        return wxDomain;
    }

    public void setWxDomain(String wxDomain) {
        this.wxDomain = wxDomain;
    }

    public String getPayNotifyUrl() {
        return payNotifyUrl;
    }

    public void setPayNotifyUrl(String payNotifyUrl) {
        this.payNotifyUrl = payNotifyUrl;
    }

    public String getTransferNotifyUrl() {
        return transferNotifyUrl;
    }

    public void setTransferNotifyUrl(String transferNotifyUrl) {
        this.transferNotifyUrl = transferNotifyUrl;
    }
}
